import { Member } from '../member'
import { Entity, PrimaryGeneratedColumn, OneToOne, JoinTable, OneToMany } from 'typeorm'

@Entity()
export class Card {
  @PrimaryGeneratedColumn()
  id: number

  @OneToMany(type => Member, member => member.card)
  @JoinTable()
  members: Member[]
}
